import 'package:fish_redux/fish_redux.dart';

enum RefuseIndoorAction {
  action,
  onSubmit,
  onTapAddPic,
  onTapPic,
  setOrderPhoto,
  onSetIndex,
  onSetSelectReason,
}

class RefuseIndoorActionCreator {
  static Action onAction() {
    return const Action(RefuseIndoorAction.action);
  }

  static Action onSubmit() {
    return const Action(RefuseIndoorAction.onSubmit);
  }

  static Action onTapAddPic() {
    return const Action(RefuseIndoorAction.onTapAddPic);
  }

  static Action onTapPic(data) {
    return Action(RefuseIndoorAction.onTapPic, payload: data);
  }

  static Action setOrderPhoto(data) {
    return Action(RefuseIndoorAction.setOrderPhoto, payload: data);
  }

  static Action onSetIndex(index) {
    return Action(RefuseIndoorAction.onSetIndex, payload: index);
  }

  static Action onSetSelectReason(index) {
    return Action(RefuseIndoorAction.onSetSelectReason, payload: index);
  }
}
